#!/bin/bash

# rm -rf build

cmake . -Bbuild
cd build || {
              ! echo "enter build failed"
                                           exit 1
}
make -j8
echo -e "\033[34m congratulations, automatic compile pipeline finish... \033[0m"
cd -

echo -e "\033[34m run test... \033[0m"

cd build/pipeline_base_cgraph/ || {
                                    ! echo "enter pipeline_base_cgraph failed"
                                                                                exit 1
}
./pipeline_base_cgraph
cd -
